package com.example.demo.study.genericity;

public class Hodler<T> {
    T val;

    public Hodler(T val) {
        this.val = val;
    }

    public T getVal() {
        return val;
    }

    public void setVal(T val) {
        this.val = val;
    }

    public static void main(String[] args) {
        Hodler<String> hodler = new Hodler<>("hello world!");
        System.out.println(hodler.getVal());
    }
}
